package com.simplemall.micro.serv.common.bean.account;

import java.util.Date;

import com.simplemall.micro.serv.common.dto.account.WxRegisterDto;

/**
 * 微信信息表
 * @author hyd
 * @Create 2017-10-19
 */
public class WxAccount {

	private int id;
	private String userid;
	private String openid;
	private String accesstoken;
	private String expires;
	private String wxNickname;
	private String unionid;
	private Date systime;
	public WxAccount(){
		
	}
	public WxAccount(WxRegisterDto wxRegisterDto){
		this.openid = wxRegisterDto.getOpenid();
		this.accesstoken = wxRegisterDto.getAccesstoken();
		this.expires = wxRegisterDto.getExpires();
		this.wxNickname = wxRegisterDto.getNickname();
		this.unionid = wxRegisterDto.getUnionid();
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getUserid() {
		return userid;
	}
	public void setUserid(String userid) {
		this.userid = userid;
	}
	public String getOpenid() {
		return openid;
	}
	public void setOpenid(String openid) {
		this.openid = openid;
	}
	public String getAccesstoken() {
		return accesstoken;
	}
	public void setAccesstoken(String accesstoken) {
		this.accesstoken = accesstoken;
	}
	public String getExpires() {
		return expires;
	}
	public void setExpires(String expires) {
		this.expires = expires;
	}
	public String getWxNickname() {
		return wxNickname;
	}
	public void setWxNickname(String wxNickname) {
		this.wxNickname = wxNickname;
	}
	public String getUnionid() {
		return unionid;
	}
	public void setUnionid(String unionid) {
		this.unionid = unionid;
	}
	public Date getSystime() {
		return systime;
	}
	public void setSystime(Date systime) {
		this.systime = systime;
	}
	
}
